<?php
/**
 * Created by PhpStorm.
 * User: mojie126
 * Date: 2017/8/24 0024
 * Time: 下午 15:35
 */

namespace app\index\controller;


use app\index\model\Users;
use think\Controller;

class CheckController extends Controller
{
	public function index()
	{
		$this->assign("title", "帐号信息");
		$extract = input("extract");
		$info = Users::getUserInfoFromExtract($extract);
		if ($info) {
			$this->assign("u", $info);

			return $this->fetch("users/check");
		} else {
			$this->error("查无此人");
		}

		return FALSE;
	}
}